package br.com.etecmatao.business.impl;

import br.com.etecmatao.business.AbstractBusiness;
import br.com.etecmatao.business.DowloadBusiness;
import br.com.etecmatao.model.Download;
import java.util.List;

public class DownloadBusinessImpl extends AbstractBusiness implements DowloadBusiness{

    public void save(Download download) {
        Download downloadBD = daoFactoryLocator.getDownloadDAO().save(download);
    }

    public List<Download> finByAll() {
        List<Download> downloadBD = daoFactoryLocator.getDownloadDAO().findAll();
        return downloadBD;
    }

    public void update(Download download) {
        daoFactoryLocator.getDownloadDAO().update(download);
    }

    public void delete(Download download) {
        daoFactoryLocator.getDownloadDAO().delete(download);
    }

}
